#include "../../Header/State/Logo.h"
#include "../../Header/Entity/Background.h"

__int32_ Logo::Init()
{
#if CURRENT_DBG_MODE == DBG_FUNC
	Device::GetInstance()->LogEx("Logo state: Init\n");
#endif
	Background* bgr = new Background();
	bgr->Init();
	m_Elements.push_back(bgr);
	return 0;
}

void Logo::Destroy()
{
#if CURRENT_DBG_MODE == DBG_FUNC
	Device::GetInstance()->LogEx("Logo state: Destroy\n");
#endif
}

void Logo::Update(__float_ deltaTime)
{
	__int32_ iCount = m_Elements.size();
	for (__int32_ i = 0; i < iCount; i++)
	{
		m_Elements.at(i)->Update(deltaTime);
	}
}

void Logo::Draw()
{
	glClear(GL_COLOR_BUFFER_BIT);
	__int32_ iCount = m_Elements.size();
	for (__int32_ i = 0; i < iCount; i++)
	{
		m_Elements.at(i)->Draw();
	}
}